package com.example.building_material_mannager.mapper;

import com.example.building_material_mannager.entity.Db;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DbMapper {
    List<Db> selectAllDb(Db db);
    List<Db> getAllDbByConditionPage(@Param("db") Db db, @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);
    int selectAllDbCount(Db db);
    void insertDb(Db db);
    void deleteDbByDbid(String dbid);
}
